package xyz.zq.sf.common.security.service;

import org.springframework.security.core.authority.AuthorityUtils;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security.core.userdetails.UsernameNotFoundException;

/**
 * @author hzq
 * @date 2021-02-18 14:08
 */
public class SfUserDetailsService implements UserDetailsService {

    @Override
    public UserDetails loadUserByUsername(String username) throws UsernameNotFoundException {



        SfUser sfUser = new SfUser("username", "password", true, true,
                true, true, AuthorityUtils.createAuthorityList(), 1, 1, 1);
        return sfUser;
    }
}
